<!DOCTYPE html>
<html lang="en">
{include file="public/head" /}
<link href="__ADMIN__/vendors/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<!-- bootstrap-daterangepicker -->
<link href="__ADMIN__/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!--模态框-->
<div class="modal fade bs-edit-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title" id="mySmallModalLabel">增加积分</h4>
            </div>
            <div class="modal-body">
                <div class="input-group">
                    <input type="number" required="required" data-id="" placeholder="请输入积分如50" class="form-control col-md-4 col-xs-6 value">
                    <span class="input-group-btn">
                            <button type="button" class="btn btn-success add-credit-confirm">确定</button>
                      </span>
                </div>
            </div>
        </div>
    </div>
</div>
<!--模态框-->
  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- menu -->
        {include file="public/menu" /}
        <!-- menu -->
        <!-- top navigation -->
        {include file="public/top" /}
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
              <div class="title_left">
                <h3>用户管理</h3>
              </div>
            </div>
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <!--content-->
                <div class="x_panel">
                  <div class="x_title">
                    <h2>查看用户 <small>list user</small></h2>

                    <ul class="nav navbar-right panel_toolbox">
                        <li class="col-sm-3 col-sm-offset-1 col-xs-12">
                          <div class="input-group">
                              <input type="text" required="required" placeholder="请输入用户昵称" class="form-control col-md-4 col-xs-6 user_nickname">
                              <span class="input-group-btn">
                            <button type="button" class="btn btn-success user_search_button">查找</button>
                          </span>
                          </div>
                      </li>
    
                      <li>
                        <button type="button" class="btn btn-success condition_destroy">重置条件</button>
                      </li>
                    </ul>

                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br>
                        <div class="table-responsive">
                          <table data-toggle="table" class="table">
                              <thead>
                                  <tr>
                                      <th>ID</th>
                                      <th>等级</th>
                                      <th>头像</th>
                                      <th>昵称</th>
                                      <th>性别</th>
                                      <th>qq/wechat</th>
                                      <th>姓名</th>
                                      <th>手机号</th>
                                      <th>地址</th>
                                      <th>积分</th>
                                      <th>状态</th>
                                      <th>注册时间</th>
                                      <th>操作</th>
                                  </tr>
                              </thead>
                              <tbody>
                                  {volist name="list" id="vo"}
                                  <tr>
                                      <td>{$vo.id}</td>
                                      <td><span>{$vo.level}</span></td>
                                      <td><img src="{$vo.headpic}" alt="" class="img-circle img-responsive" style="max-width: 60px;">
                                      </td>
                                      <td><span class="label label-success">{$vo.nickname}</span></td>
                                      <td><span class="label label-info">{$vo.sex_text}</span></td>
                                      <td><span>{$vo.wechat}</span></td>
                                      <td><span>{$vo.username}</span></td>
                                      <td><span>{$vo.phone}</span></td>
                                      <td><span>{$vo.region}{$vo.address}</span></td>
                                      <td><span class="label label-danger">{$vo.credit}</span></td>
                                      <td><span>{$vo.status}</span></td>
                                      <td><span>{$vo.create_time}</span></td>
                                      <td>
                                          <button type="button" class="btn btn-danger" data-id="{$vo.id}" data-toggle="modal" data-target=".bs-edit-modal-sm">增加积分</button>
                                          <button class="btn btn-warning" onclick="window.location.href='{:url('admin/Pay/index','id='.$vo.id)}'">积分详情</button>
                                          <button class="btn btn-success" onclick="window.location.href='{:url('admin/User/order','id='.$vo.id)}'">历史订单</button>
                                      </td>
                                  </tr>
                                  {/volist}
                              </tbody>
                          </table>
                      </div>
                      <div class="panel">
                          <!--分页-->
                          <div class="text-center">
                              <ul class="pagination">
                                  {$list->render()}
                              </ul>
                          </div>
                          <!--分页-->
                      </div>

                  </div>
                </div>
                <!--content-->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        {include file="public/footer" /}
        <!-- /footer content -->
      </div>
    </div>
    <!-- script -->
    <!-- jQuery -->
    <script src="__ADMIN__/vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="__ADMIN__/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="__ADMIN__/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="__ADMIN__/vendors/nprogress/nprogress.js"></script>
    <!-- script -->
    <script src="__ADMIN__/vendors/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="__ADMIN__/vendors/layer/layer.min.js"></script>
    <!-- bootstrap-daterangepicker -->
    <script src="__ADMIN__/vendors/moment/min/moment.min.js"></script>
    <script src="__ADMIN__/vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
    <!-- Custom Theme Scripts -->
    <script src="__ADMIN__/build/js/app.js"></script>
    <script src="__ADMIN__/build/js/custom.js"></script>


  </body>
<script type="text/javascript">
    var add_credit_url = "{:url('admin/User/addCredit')}";
    $(function(){

    });
</script>
</html>
